package cn.gzmli.dtt.common.entity;


import cn.gzmli.dtt.sbzyc.validation.Delete;
import cn.gzmli.dtt.sbzyc.validation.Update;
import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 用户基本信息和权限信息
 * @author wonderful
 * @create 20150708
 */
@Entity
@Table(name = "user_mac")
@Data
public class UserMac implements Serializable,Cloneable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @NotNull(groups = {Update.class, Delete.class})
    private Integer id;

    private Integer userId;

    private String pcMac;

}
